﻿Imports System.Object
Imports VSModel
Imports Cls_Common
Partial Class FrontEnd_Control_Support
    Inherits System.Web.UI.UserControl
#Region "Sub and Function "
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            ShowData()
        End If
    End Sub
    Protected Sub ShowData()
        Dim data As New VSEntities

        Dim p As Menu = (From q In data.Menus Where q.TitlePage = "ho-tro-truc-tuyen" Select q).FirstOrDefault
        If Not p Is Nothing Then
            ltrTitle.Text = IIf(IsNothing(p.Title) = True, "", p.Title)
            ltrDescription.Text = IIf(IsNothing(p.Description) = True, "", p.Description)
        End If
    End Sub
#End Region
End Class
